<template>
  <div class="aside">
    <div class="aside-box">
      <div class="head-wrap">
        <h3 class="title">栏目分类</h3>
      </div>
      <ul class="column-list">
        <li class="column-item" v-for="(itm, index) in 2" :key="index">
          <div class="left">
            <span>前端</span>
          </div>
          <div class="count">15</div>
        </li>
      </ul>
    </div>
    <div class="aside-box">
      <div class="head-wrap">
        <h3 class="title"><i></i> 标签云</h3>
      </div>
      <ul class="tag-list">
        <li class="tag-item" v-for="(itm, index) in 2" :key="index">Vue</li>
      </ul>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { computed } from "vue-demi";

const curYear = computed(() => new Date().getFullYear());
</script>

<style lang="scss" scoped>
.aside {
  margin-left: 20px;
  width: 25%;
  .aside-box {
    box-sizing: border-box;
    background: #fff;
    padding: 20px;
    margin-bottom: 10px;
    .head-wrap {
      border-bottom: 1px solid #eee;
      .title {
        color: #666;
        margin-bottom: 10px;
        font-size: 16px;
      }
    }

    /* 栏目分类 */
    .column-list {
      padding-top: 10px;
      .column-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        font-size: 12px;

        .left {
        }
        .count {
          line-height: 18px;
          padding: 0 5px;
          background: #eee;
          color: #666;
        }
      }
    }

    /* 标签 */
    .tag-list {
      display: flex;
      flex-wrap: wrap;
      padding: 10px 0;
      .tag-item {
        margin: 0 6px 5px 0;
        padding: 0 5px;
        border: 1px solid #999;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 12px;
        color: #b90e81;
        cursor: pointer;
        .tag {
        }
      }
    }
  }
}
</style>
